package com.tencent.bugly.beta.upgrade;

import android.os.Parcel;
import android.os.Parcelable;
import com.tencent.bugly.proguard.ah;
import com.tencent.bugly.proguard.m;
import com.tencent.bugly.proguard.y;

/* compiled from: BUGLY */
/* loaded from: classes.dex */
public class BetaGrayStrategy implements Parcelable, Parcelable.Creator<BetaGrayStrategy> {
    public static final Parcelable.Creator<BetaGrayStrategy> CREATOR = new BetaGrayStrategy();
    public y a;
    public int b;
    public long c;
    public boolean d;
    public long e;

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    public BetaGrayStrategy(Parcel parcel) {
        this.b = 0;
        this.c = -1L;
        this.d = false;
        this.e = -1L;
        this.a = (y) ah.a(parcel.createByteArray(), y.class);
        this.b = parcel.readInt();
        this.c = parcel.readLong();
        this.d = 1 == parcel.readByte();
        this.e = parcel.readLong();
    }

    public BetaGrayStrategy() {
        this.b = 0;
        this.c = -1L;
        this.d = false;
        this.e = -1L;
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeByteArray(ah.a((m) this.a));
        parcel.writeInt(this.b);
        parcel.writeLong(this.c);
        parcel.writeByte(this.d ? (byte) 1 : (byte) 0);
        parcel.writeLong(this.e);
    }

    @Override // android.os.Parcelable.Creator
    /* renamed from: a */
    public BetaGrayStrategy createFromParcel(Parcel parcel) {
        return new BetaGrayStrategy(parcel);
    }

    @Override // android.os.Parcelable.Creator
    /* renamed from: a */
    public BetaGrayStrategy[] newArray(int i) {
        return new BetaGrayStrategy[i];
    }
}
